package work;

import java.util.Scanner;


public class IsNumber {
    /**
     * 判断是否是数字
     * @param args
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()){
            String in = sc.nextLine();
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ;i<in.length();i++){
                if (Character.isDigit(in.charAt(i))){
                    builder.append(in.charAt(i));
                }
            }
            System.out.println(builder.toString());
        }
    }
}
